package Slidespresso;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import Slidespresso.Slide;
import XML.*;

public class Presentation extends Element{

	Presentation(String elementName) {
		super(elementName,"");
		
	}

	@Override
	public String getElementName() {
		return super.getElementName();
	}

	@Override
	public void setElementName(String elementName) {
		super.setElementName(elementName);
	}

	@Override
	public String getElementValue() {
		return super.getElementValue();
	}

	@Override
	public void setElementValue(String elementValue) {
		super.setElementValue(elementValue);
	}

	@Override
	public void addElement(Element el) {
		super.addElement(el);
	}

	public void xmlOutput() throws ParserConfigurationException, TransformerException{
		XMLWriter.instantiate(this.elementName);
		super.printChildElement();
		XMLWriter.commit();
	}
	
}
